home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2 Examples.sit
/
Raven 1.2 Examples
/
Quill
/
Source
/
ListBoxProxy.cpp
< prev
next >
Wrap
Text File
|
1997-08-07
|
2KB
|
70 lines
/*
* File: ListBoxProxy.cpp
* Function: Proxy for TListBox subclasses.
* Written by: Jesse Jones
*
* Copyright ゥ 1997 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 1/22/97 JDJ Created
*/
#include "ListBoxProxy.h"
#include <ZView.h>
// ===================================================================================
// class CListBoxProxy
// ===================================================================================
static TReanimatorRegister<CListBoxProxy> sListBoxRegistrar("TListBox");
static TReanimatorRegister<CListBoxProxy> sListBoxProxyRegistrar;
//---------------------------------------------------------------
//
// CListBoxProxy::~CListBoxProxy
//
//---------------------------------------------------------------
CListBoxProxy::~CListBoxProxy()
{
}
//---------------------------------------------------------------
//
// CListBoxProxy::CListBoxProxy
//
//---------------------------------------------------------------
CListBoxProxy::CListBoxProxy(const string& name, TView* superView, const TRect& frame, MCommander* super) : TListBox<int>(name, superView, frame, super)
{
mCellHeight = 16; // anything greater than zero will do
}
//---------------------------------------------------------------
//
// CListBoxProxy::Create [static]
//
//---------------------------------------------------------------
MReanimatable* CListBoxProxy::Create(MReanimatable* parent)
{
return new CListBoxProxy("????", dynamic_cast<TView*>(parent), TRect(0, 0, 75, 75), nil);
}
//---------------------------------------------------------------
//
// CListBoxProxy::OnDrawCell
//
//---------------------------------------------------------------
void CListBoxProxy::OnDrawCell(TCanvas& canvas, const TRect& cellBounds, const int& item, bool isSelected)
{
#pragma unused(canvas, cellBounds, item, isSelected)
}